<?php
$this->menu=array(
	array('label'=>'Danh sách hướng dẫn', 'url'=> 'admin/help'),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#page-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>Hướng dẫn game</h1>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'page-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		array(
			'name' => 'id',
			'htmlOptions' => array('style' => 'width:40px;text-align:center')
		),
		array(
			'name' => 'title',
			'htmlOptions' => array('style' => 'padding:0 20px;')
		),
		array(
			'class'=>'CButtonColumn',
			'buttons' => array(
				'delete' => array('visible' => 'false'),
				'view' => array('visible' => 'false'),
			)
		),
	),
)); ?>
